<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
 String path = request.getContextPath();
 String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<base href="<%=basePath%>">
	<title>注册 - SegmentFault</title>
	<jsp:include page="../common/_meta.jsp"></jsp:include>
</head>
<body>
	<jsp:include page="../common/_header.jsp"></jsp:include>
	<div class="wrap">
		<div class="inner edge">
			<h2 class="common-title">提出新问题</h2>
			<div id="main">
				<div id="content" class="edit-post">
					<form action="question/post" method="post">
						<input type="hidden" name="blogToken" value="${questionToken}" />
						<p style="position: relative;">
							<label for="title" class="hid">标题</label> 
							<input type="text" name="question.title" tabindex="101" value="${ref }" class="text-34 placeholder" autocomplete="off" spellcheck="false" placeholder="标题，用一句话概括你的问题">
							<c:if test="">
								<span class="text-error t-e">请填写标题</span>
							</c:if>
						</p>
						<div class="editor">
							<a href="#" title="粗体文本 (快捷键 Alt+B)" class="btnBold"></a> 
							<a href="#" title="斜体文本 (快捷键 Alt+I)" class="btnItalic"></a>
							<a href="#" title="代码文本 (快捷键 Alt+C)" class="btnCode"></a><i></i> 
							<a href="#" title="引用段落 (快捷键 Alt+Q)" class="btnQuote"></a> 
							<a	href="#" title="代码 (快捷键 Alt+P)" class="btnPre"></a> 
							<a href="#"	title="标签链接 (快捷键 Alt+T)" class="btnTag"></a><i></i> 
							<a href="#"	title="副标题 (快捷键 Alt+H)" class="btnHeading"></a> 
							<a href="#"	title="分割线 (快捷键 Alt+R)" class="btnHr"></a> 
							<a href="#"	title="普通列表 (快捷键 Alt+U)" class="btnUl"></a> 
							<a href="#"	title="数字列表 (快捷键 Alt+O)" class="btnOl"></a><i></i> 
							<a href="#"	title="链接 (快捷键 Alt+L)" class="btnLink"></a>
							<a href="#" title="图片 (快捷键 Alt+I)" class="btnImg"></a>
						</div>
						<p>
							<label for="qtext" class="hid">内容</label>
							<textarea id="qtext" class="textarea-14" name="question.content" tabindex="102" autocomplete="off" spellcheck="false" rows="15"></textarea>
							<span class="resize"></span>
							<c:if test="">
								<span class="text-error t-e">内容的字数过少, 请详细描述</span>
							</c:if>
						</p>

						<p>
							<label for="title" class="hid">问题分类</label> 
							<input type="text" name="question.sort_id" tabindex="101" value="" class="text-34 placeholder" autocomplete="off" spellcheck="false" placeholder="请选择问题的分类">
							<c:if test="">
								<span class="text-error t-e">为了方便问题归类, 请选择一个问题分类</span>
							</c:if>
						</p>
						<div class="form-action">
							<input type="submit" class="btn btn-big" tabindex="104"
								value="提交问题">
						</div>

						<div class="fmt preview">
							<p></p>
						</div>
					</form>
				</div>
				<!-- end #content -->
			</div>
			<!-- end #main -->

			<div id="secondary">
				<aside class="edit-notice">
					<h3>提问要求</h3>
					<ul>
						<li>和开发相关的</li>
						<li>有明确的答案，不是讨论题</li>
						<li>具备清晰的问题描述和代码</li>
						<li>包含自己尝试过的办法</li>
						<li>良好的排版格式</li>
						<li>不重复提问</li>
					</ul>
				</aside>
				<aside class="edit-notice">
					<h3>排版格式</h3>
					<ul>
						<li><code><strong>**粗体文本**</strong></code></li>
						<li><code><em>''斜体文本''</em></code></li>
						<li><code>`转义代码`</code></li>
						<li><code><strong>== 标题 ==</strong></code></li>
						<li><code>[[http://..|链接名称]]</code></li>
						<li><code> &gt; 引用段落</code></li>
						<li><code>{{{代码片段}}}</code></li>
					</ul>
				</aside>
			</div>
			<!-- end #secondary -->
		</div>

	</div>
	<!-- end .wrap -->
	<jsp:include page="../common/_footer.jsp"></jsp:include>
</body>
</html>